<!--
  Generated template for the SmsLoginPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
  <ion-navbar>
    <ion-title>短信验证登录</ion-title>
  </ion-navbar>
</ion-header>

<ion-content>
  <ion-item>
    <ion-label fixed>手机号</ion-label>
    <ion-input type="text" placeholder="请输入手机号" [(ngModel)]="user.mobile"></ion-input>
  </ion-item>
  <ion-item>
    <ion-label fixed>验证码</ion-label>
    <ion-input type="text" placeholder="请输入验证码" [(ngModel)]="user.code"></ion-input>
    <button item-right ion-button color="primary" (click)="getCode()" [disabled]="status">{{codeValue}}</button>
  </ion-item>
  <div padding>
    <button ion-button block color="primary" (click)="doLogin()"
            [disabled]="!(user.code.length > 0 && user.mobile.length > 0)"> 登录
    </button>
  </div>
</ion-content>
